package edu.uaskl.jqf.model.matrix;

import java.util.Arrays;

public class MatrixTransformation {
    private final MatrixComplex matrixComplex;
    private final int[] transformationVector;

    public MatrixTransformation(final MatrixComplex matrixComplex, final int[] transformationVector) {
        this.matrixComplex = matrixComplex;
        this.transformationVector = transformationVector;
    }

    public MatrixComplex getMatrixComplex() {
        return matrixComplex;
    }

    public int[] getTransformationVectorCopy() {
        return Arrays.copyOf(transformationVector, transformationVector.length);
    }

    @Override
    public String toString() {
        final StringBuilder builder = new StringBuilder();
        builder.append("MatrixTransformation [matrixComplex=\n");
        builder.append(matrixComplex);
        builder.append(", transformationVector=\n");
        builder.append(Arrays.toString(transformationVector));
        builder.append("]");
        return builder.toString();
    }
}
